package com.corn.prometheus.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.ThreadLocalRandom;

/**
 * @author : Jim Wu
 * @version 1.0
 * @function :
 * @since : 2022/6/15 14:43
 */

@Slf4j
@RestController
public class LogController {

    @GetMapping("/testLoki")
    public void testLoki(){
      log.info("test Loki Promtail {}", ThreadLocalRandom.current().nextLong(200));
    }

}
